import {request, config} from 'utils'

const {api} = config
const {mobile} = api

export function query (params) {
  return request({
    url: mobile,
    method: 'get',
    data: params,
  })
}

export function create (params) {
  return request({
    url: mobile,
    method: 'post',
    data: params,
  })
}

export function remove (params) {
  return request({
    url: mobile,
    method: 'delete',
    data: params,
  })
}

export function update (params) {
  return request({
    url: mobile,
    method: 'put',
    data: params,
  })
}
